Skip to content

added support for warnings stdlib - #1393

Closed
AdriTara wants to merge 1 commit into
deeptools:masterfrom
AdriTara:master
Closed

AdriTara wants to merge 1 commit into
deeptools:masterfrom
AdriTara:master

Conversation

@AdriTara

@AdriTara AdriTara commented Apr 14, 2025 •

Copy link
Copy Markdown

Welcome to deepTools GitHub repository! Please check the following regarding
your pull request :

  • Does the PR contain new feature?
  • Does the PR contain bugfix?
    An error was raising while using computeMatrixOperations filterValues on NumPy version 1.26.4. I think NumPy deleted the link to the warnings stdlib as of version 1.21.5 (See stackoverflow thread). Therefore, the script computeMatrixOperations.py fails on line 432, raising:
np.warnings.filterwarnings('ignore')
AttributeError: module 'numpy' has no attribute 'warnings'. Did you mean: 'hanning'?

Therefore, based on the same stackoverflow thread I modified all the files importing numpy to add support for warnings. The other option is to comment the line 432 as suggested in #1358 .

  • Does the PR contain documentation changes?
  • Does the PR contain changes to the galaxy wrapper?

@AdriTara
AdriTara marked this pull request as draft April 13, 2026 11:57
@AdriTara
AdriTara marked this pull request as ready for review April 13, 2026 11:58
@WardDeb

WardDeb commented Sep 23, 2026

Copy link
Copy Markdown
Member

Thanks for the work. Instead of rerouting np warnings through stdlib I'd rather have the specific warnings ignored only in the relevant call context (cfr. #1478).

@WardDeb WardDeb closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants